/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.lnu.ums.entities.processes;

import edu.lnu.ums.entities.Charity;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

/**
 *
 * @author Orysia
 */
@Entity
public class CharityProcess extends ExpendituresProcess {

    private static final long serialVersionUID = 1L;

    public List<Charity> getCharity() {
        return charity;
    }

    public void setCharity(List<Charity> charity) {
        this.charity = charity;
    }

    @OneToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE}, fetch=FetchType.LAZY)
    @JoinColumn(name="charParent")
    List<Charity> charity;


}
